<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/21
 * Time: 14:47
 */
namespace app\api\controller\v1;
use app\common\model\Menu as MenuModel;
class Menu extends Base {
    private $model;
    public function _initialize(){
        parent::_initialize();
        $this->model = new MenuModel;
    }
    //获取主菜单信息
    public function getMenu(){
        $res = $this->model->getMenulist();
        return show(200,'获取数据成功',$res);

    }
}